<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Collections"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="f" uri="/flowpage-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>编辑Demo</title>
		<%@include file="/share/header.jsp"%>		
		<s:head />
		<f:header  theme="${sessionScope.skinCon.pageSkin}"/>
	</head>
	<body>
		<s:actionerror />
		<f:container>
			<h2>编辑Demo</h2>
		</f:container>		
	    <f:fieldset align="center" title="FlowPage演示" multiplewidth="2">		
			<s:form action="editTest.jsp" namespace="/test/demo" validate="true" focusElement="password" autocomplete="off">
				<s:password label="密码" required="true" dataType="LimitB" name="password" min="6" msg="密码不少于6位" autocomplete="off"/>
	            <s:password label="确认密码" required="true"  name="Repeat" dataType="Repeat" to="password" msg="确认密码输入不一致" autocomplete="off"/>
	            <s:textfield label="出生日期" name="birthday" dataType="Date" ><s:date  name="birthday" format="yyyy-mm-dd"/></s:textfield>
	            <s:textfield name="email" label="年龄" dataType="Compare" to="18" operator="GreaterThanEqual" msg="年龄不小于18" />
	            <s:file label="图片" name="anUploadFile" multiplewidth="1" accept="text/*" required="true" msg="请选择要上传的图片" />
				<s:radio required="true" label="性别" noborder="true" name="Gender" dataType="Group" msg="请选择性别" list="#{'1':'男','2':'女'}" />
				<s:select label="月份" name="months" emptyOption="true" list="#{'01':'Jan', '02':'Feb', '03':'Feb3', '04':'Feb4'}"	value="selectedMonth" required="true" msg="请选择月份"/>
				<s:textfield name="name" label="姓名" required="false" dataType="LimitB" min="2" max="1000" msg="姓名长度必须大于2,小于30"/>
				<s:textfield name="email" label="电子邮箱" readonly="true"	dataType="Email" msg="电子邮箱格式不正确" />
				<s:textfield name="tel" label="电话号码" required="true" disabled="true" dataType="Phone" msg="电话号码不正确" />
				<s:textfield name="mailcode" label="邮编" required="true" dataType="Zip" msg="邮编格式不正确" />
				<s:textfield name="mobile" label="手机号码" required="true" dataType="Mobile" msg="手机格式不正确" />
	  			<s:checkboxlist name="foo" label="月份"  multiplewidth="2" columnBreak="6" noborder="true" list="#{'01':'一月', '02':'二月', '03':'三月', '04':'四月','05':'五月', '06':'六月', '07':'七月', '08':'八月','09':'九月', '10':'十月', '11':'十一月', '12':'十二月'}" 	required="true" dataType="Group" min="2" msg="月份至少要选择两个"/>
	  			<s:radio name="foo" label="月份"  multiplewidth="2" columnBreak="6" noborder="true" list="#{'01':'一月', '02':'二月', '03':'三月', '04':'四月','05':'五月', '06':'六月', '07':'七月', '08':'八月','09':'九月', '10':'十月', '11':'十一月', '12':'十二月'}" 	required="true" dataType="Group" min="2" msg="月份至少要选择两个"/>
				<s:textarea label="备注" name="comments" multipleheight="3" multiplewidth="2" dataType="LimitB" max="10" msg="备注必须在0-1000个字符之间"/>  
				<f:container align="center">				
					<s:submit value="保 存" onclick="if(confirm('sure?')){alert('submit');}else{return false;}"/>
					<s:submit value="提 交"/>
					<s:submit value="退 回"/>
					<input type="button" value="取 消" onclick="alert('close')"/>
				</f:container>
			</s:form>
	   </f:fieldset>		
	</body>
</html>